#!/bin/bash

rm -rf dist

pnpm build

cd dist && zip -r cike_employee_dist.zip ./*

scp cike_employee_dist.zip root@119.23.220.30:/www/wwwroot/ciketra.yunpintech.com/

ssh root@119.23.220.30 "cd /www/wwwroot/ciketra.yunpintech.com && unzip -o /www/wwwroot/ciketra.yunpintech.com/cike_employee_dist.zip && rm -f /www/wwwroot/ciketra.yunpintech.com/cike_employee_dist.zip"

rm -rf dist